// BondServiceImpl.java
package com.geek.hero.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.geek.hero.entity.Bond;
import com.geek.hero.mapper.BondMapper;
import com.geek.hero.service.IBondService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 羁绊服务实现类
 * </p>
 *
 * @author author
 * @since 2025-09-14
 */
@Service
public class BondServiceImpl extends ServiceImpl<BondMapper, Bond> implements IBondService {

    @Override
    public List<Bond> searchByName(String keyword) {
        QueryWrapper<Bond> queryWrapper = new QueryWrapper<>();
        queryWrapper.like("name", keyword);
        return this.list(queryWrapper);
    }
}
